package org.JQbitorrentClinet.request.authentication;

import lombok.Builder;
import lombok.Data;
import org.JQbitorrentClinet.base.BaseParam;
import org.JQbitorrentClinet.utils.HttpClientProxyRequestType;

@Data
@Builder
public class LoginParam extends BaseParam{
    String username;
    String password;

    public LoginParam(String username, String password) {
        this.requestType = HttpClientProxyRequestType.POSTMULTIPART;
        this.responseType = String.class;
        this.username = username;
        this.password = password;
    }

    @Override
    public String getApiUrl() {
        return "/api/v2/auth/login";
    }
}
